<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>测试</title>
  </head>
  <body>
    <script src="./concurRequest.js"></script>
    <script>
      const urls = [];
      for (let i = 1; i < 10; i++) {
        urls.push(`https://jsonplaceholder.typicode.com/todos/${i}`);
      }
      concurRequest(urls, 3).then(resp => {
        console.log(resp);
      });
    </script>
  </body>
</html>
